#!/bin/bash

export WEBPORT="${WEBPORT:-6883}"
export CONFIG_URL="${CONFIG_URL:-http://10.202.244.23:32002/config}"
export APP_CONFIG_NAME=application
export DUBBO_GO_CONFIG_PATH=./conf.d/dubbo/dubbogo.yaml


echo "ENV: APP_CONFIG_URL=${CONFIG_URL}"
echo "ENV: APP_WEB_PORT=${WEBPORT}"
echo "ENV: APP_CONFIG_NAME=${APP_CONFIG_NAME}"
echo "ENV: DUBBO_GO_CONFIG_PATH=${DUBBO_GO_CONFIG_PATH}"

# 必须创建日志目录，否则DubboGO内置的日志组件会启动失败
mkdir -p $(pwd)/logs

./hyperway
